<%@ page language="java" import="java.util.*,wineshop.config.VersionInfo" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>酒店管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

    <script type="text/javascript" src="<c:url value="/js/common.js"/>"></script>
    
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/application.css"></c:url>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/main.css"></c:url>">


	
    <script type="text/javascript">
      var leftMenuIsShow=true;
	    
	    function switchLeftMenuBar(arrowImage)
	    {
	       hide('navigator');
	       leftMenuIsShow=leftMenuIsShow==true?false:true;
	       
	       if(leftMenuIsShow==true)
	       {
	         arrowImage.title="隐藏左侧菜单";
	         arrowImage.src="<c:url value="/pics/backend/arrow_left.gif"/>";
	       }else{
	         arrowImage.title="显示左侧菜单";
	         arrowImage.src="<c:url value="/pics/backend/arrow_right.gif"/>";
	       }
	    }
    
    
    
      function logout(){
      if(confirm("您真的要退出系统吗？")){
          location.href="<c:url value="securityMgr?act=logout"/>";
           }
      }
    
    
    </script>


 </head>
 <body>
       <!-- 头部区域 -->
       <div id="header">
             <div id="headleft"></div>
             <div id="info">
                     <div id="time"></div>
                     <div id="userinfo">
                                                                                          管理员: ${loginedMgr.realName} 
                     <span id="logout" onclick="logout()">[退出系统]</span>                             
                     </div>
             </div>
             <div id="header-large-image"></div>
             <div id="header-small-image"></div>
       </div>
       
       
       <!--菜单区  -->       
         <div id="pagebody">
             <div id="navigator">
                   <div class="leftNavHeader">酒店分店</div>
                   <div class="leftNavRootBox">
                         <a href="<c:url value="/HotelMgr?act=input_hotel"/>" target="mainFrame">新增分店</a>
                   </div>
                   <div class="leftNavRootBox">
		                 <a href="<c:url value="/HotelMgr?act=loadall"/>" target="mainFrame">分店信息</a>
		           </div> 
		  
                   <div class="leftNavHeader">分店房间</div>
		           <div class="leftNavRootBox">
					     <a href="<c:url value="/RoomMgr?act=input_room"/>" target="mainFrame">新增房间信息</a>
		           </div>
		           <div class="leftNavRootBox">
		                 <a href="<c:url value="/RoomMgr?act=qryloadall"/>"target="mainFrame">房间信息查询</a>
		           </div>
		  
		           <div class="leftNavHeader">管理员账户</div>
		           <div class="leftNavRootBox">
					             <a href="# target="mainFrame">新增账户</a>
		           </div>
		           <div class="leftNavRootBox">
		                         <a href="#" target="mainFrame">账户管理</a>
		           </div>
		  
		           <div class="leftNavHeader">顾客管理</div>
			       <div class="leftNavRootBox">
			                     <a href="#"target="mainFrame">顾客管理</a>
			       </div>
			 
                   <div class="leftNavHeader">用户评论管理</div>
		           <div class="leftNavRootBox">
		                         <a href="#" target="mainFrame">用户评论管理</a>
		           </div>
		     
		           <div class="leftNavHeader">订单管理</div>
			       <div class="leftNavRootBox">
					             <a href="#" target="mainFrame">查询订单</a>
			       </div>
			       <div class="leftNavRootBox">
					             <a href="#" target="mainFrame">订单跟踪查询</a>
			       </div>
			 
		           <div class="leftNavDelimiter"></div>
             </div>
         </div>
         
       
       
       <!--隐藏左侧菜单  -->
       <div id="seprator">
            <img style="margin-bottom:25px" src="<c:url value="/pics/backend/bar.jpg"/>" width="14" height="150"/>
	            <img id="hiddenArrow"
	                 style="margin-left:5px; cursor:hand"
	                 src="<c:url value="/pics/backend/arrow_left.gif"/>" 
	                 width="5" 
	                 height="9"
	                 onclick="switchLeftMenuBar(this);"/>
       </div>


       <!-- 主区域 -->
       <div style="float:left;">
            <!--  
            <div align="center">
                <p align="center"><img src="pics/backend/main.jpg" ></p>
            </div>
            -->
             <iframe id="mainFrame"
                     name="mainFrame"
                     src=""
                     width="100%"
	                 height="740px"
	                 style="margin:0px;padding:0px"  scrolling="no">    
             </iframe>
       </div> 
 	   <div id="footer" style="margin-top:10px;">
	      <%=VersionInfo.buildFooterStr()%>
 	   </div>
 	   <script type="text/javascript">
 	    window.setInterval("showTime($('time'));",1000);
 	   </script>  
       
  </body>
</html>
